import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '@/views/home/HomeView.vue'
import SelectView from '@/views/select/SelectView.vue'
import PromoteView from '@/views/promote/PromoteView.vue'
import OperateView from '@/views/operate/OperateView.vue'
import ServiceView from '@/views/service/ServiceView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    }, {
      path: '/select',
      name: 'select',
      component: SelectView
    }, {
      path: '/promote',
      name: 'promote',
      component: PromoteView
    }, {
      path: '/operate',
      name: 'operate',
      component: OperateView
    }, {
      path: '/service',
      name: 'service',
      component: ServiceView
    }
  ]
})

export default router
